package cn.heycm.seata.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hey
 * @version 1.0
 * @since 2024/9/10 21:12
 */
@FeignClient(value = "app-product")
public interface ProductApi {

    @GetMapping("/ping")
    String ping();

    @PostMapping("/update")
    void update(@RequestParam("productId") Integer productId,
                @RequestParam("productName") String productName);
}
